<h1>Listing part_records</h1>

<table>
  <tr>
    <th>Ordered by</th>
    <th>Ordered at</th>
    <th>Repair record</th>
    <th>Template part</th>
    <th>Name</th>
    <th>Supplier</th>
    <th>Notes</th>
    <th>Cost estimate</th>
    <th>Delivery estimate</th>
    <th>Tracking number</th>
    <th>Cost actual</th>
    <th>Delivery actual</th>
    <th>Part state</th>
    <th>Issue</th>
  </tr>

<% for part_record in @part_records %>
  <tr>
    <td><%=h part_record.ordered_by_id %></td>
    <td><%=h part_record.ordered_at %></td>
    <td><%=h part_record.repair_record_id %></td>
    <td><%=h part_record.template_part_id %></td>
    <td><%=h part_record.name %></td>
    <td><%=h part_record.supplier %></td>
    <td><%=h part_record.notes %></td>
    <td><%=h part_record.cost_estimate %></td>
    <td><%=h part_record.delivery_estimate %></td>
    <td><%=h part_record.tracking_number %></td>
    <td><%=h part_record.cost_actual %></td>
    <td><%=h part_record.delivery_actual %></td>
    <td><%=h part_record.part_state_id %></td>
    <td><%=h part_record.issue_id %></td>
    <td><%= link_to 'Show', part_record %></td>
    <td><%= link_to 'Edit', edit_part_record_path(part_record) %></td>
    <td><%= link_to 'Destroy', part_record, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>



<%= link_to 'New part_record', new_part_record_path %>
